package com.cloudbroker.bsc.common.search.common;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * 搜所引擎
 *
 * @create 2016-6-11
 * @author moyin18602
 * @version
 */
public class SearchEngineAdapterClient{
	public static SearchEngineAdapter searchEngineAdapter;

	public static SearchEngineAdapter getSearchEngineAdapter(){
		if(searchEngineAdapter == null){
			return new SearchEngineAdapter();
		}else{
			return searchEngineAdapter;
		}
	}

	public static void main(String[] args){
		Map<String ,String> map = new HashMap();

		map.put("request_num","es equals 1");
		List<Map> l= SearchEngineAdapterClient.getSearchEngineAdapter().query(map);
		System.out.println("value===:" + JSON.toJSON(l));
	}
}
